function compileEventsController(self)
{
    self.EventsController = Class.create(
    {
        /**
         * Constructor.
         * 
         * @param eventsContainerRange The range of coordinates specifying the size of the events container.
         * @param hidden Whether or not the page is initially hidden.
         * @param containerDivId The entire navigation container.
         */
        initialize: function(eventsContainerRange, hidden, containerDivId)
        {
        	// Setup events container.
        	this.eventsContainer = new EventsContainer(eventsContainerRange, hidden, containerDivId);
        	
        	// Anchor the events.
            this.eventsContainer.anchorContainer();
        },
        
        /**
         * Shows the events container.
         */
        show: function()
        {
            this.eventsContainer.show();
        },
        
        /**
         * Hides the events container.
         */
        hide: function()
        {
            this.eventsContainer.hide();
        }
    });
}